package com.rongdong.parkingcapture.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * 任务实体类
 */
@TableName("task")
@Data
@EqualsAndHashCode(callSuper = true)
public class Task extends BaseEntity{

    /*
     * 任务id
     */
    @TableId(value = "task_id", type = IdType.INPUT)
    private String taskId;

    /*
     * 视频流地址
     */
    private String url;

    /*
     * 抽帧间隔ms
     */
    private Integer intervals;

    /*
     * kafka发送主题
     */
    private String topic;

    /*
     * 对视频流配置算法
     */
    @TableField(value = "pipeline_config")
    private String pipelineConfigString;

    /*
     * 对 pipelineConfig 做转换对象处理
     */
    @TableField(exist = false)
    private List<PipelineConfig> pipelineConfig;

    /*
     * 透传参数
     */
    @TableField(value = "transparent_parameter")
    private String transparentParameterString;

    /*
     * 对 transparentParameterObj 做转换对象处理
     */
    @TableField(exist = false)
    private TransparentParameter transparentParameter;


}
